package dsk.demo.product.entity.gupiao;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("g_day_price")
public class GDayPrice {
    @TableId
    private Long id;        //
    private String gCode;      //股票代码
    private String gName;      //股票名称
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;      //日期
    private BigDecimal startPrice;     //开盘价
    private BigDecimal endPrice;       //收盘价
    private BigDecimal maxPrice;       //最高价
    private BigDecimal minPrice;       //最低价
    private BigDecimal turnover;      //成交量(手)
    private BigDecimal turnoverAmount;       //成交额(元)
    private BigDecimal zf;      //振幅(%)
    private BigDecimal zd;      //涨跌幅(%)
    private BigDecimal zde;      //涨跌额(%)
    private BigDecimal exchange;        //换手率

    private BigDecimal avg5; // 均线
    private BigDecimal avg8;
    private BigDecimal avg13;
    private BigDecimal avg21;
    private BigDecimal avg34;
    private BigDecimal avg55;

}
